package org.spark.sparkUtil

import org.apache.spark.{SparkConf, SparkContext}

object SparkScalaContextUtil {

  def getSparkStart(appName: String): SparkContext = {
    val conf = new SparkConf()
      .setAppName(appName)
      .setMaster("local")
    val sc = new SparkContext(conf)
    return sc
  }


}
